/************************************************************
 * Copyright (C), 2022-2030, ripnano. Co., Ltd.
 * FileName:        form_setting_datatools.h
 * Author:          Dan Yin
 * Date:            2023-10-12
 * Description:     the class of data tools window
 * Version:         1.0.0.0
 **********************************************************/

#ifndef FORM_SETTING_DATA_TOOLS_H
#define FORM_SETTING_DATA_TOOLS_H

// add necessary includes here
#include "ui/defines/global.h"

namespace Ui {
class FormSettingDataTools;
}

class FormSettingDataTools : public QWidget
{
    Q_OBJECT

public:
    // Get an instance of "FormSettingDataTools" class, if exist, return it
    static FormSettingDataTools* getInstance(QWidget *pParent = nullptr);

signals:
    // The signal that refresh UI info
    void signalRefreshUI();

private slots:
    void on_pushButton_Backup_clicked();

    void on_pushButton_Restore_clicked();

    void on_pushButton_RestoreFactory_clicked();

    // Get the reply message from the child window
    void slotRespondInfoFromDlg(int nReplyType, bool bAccepted=true);

protected:
    // Triggers an event before it is switch language
    void changeEvent(QEvent *event);

private:
    // The default constructor
    explicit FormSettingDataTools(QWidget *parent = nullptr);

    // The default destructor
    virtual ~FormSettingDataTools();

    // After constructing object, initialize the object
    void _initialze();

    // Init the window style
    void _initUi();

private:
    Ui::FormSettingDataTools *ui;
};

#endif // FORM_SETTING_DATA_TOOLS_H
